package com.chuangke.file.model;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "file_index")
public class FileDocument {

	@Id
	private String id;
	
	private long version;
	private String suffix;
	private String mimeType;
	private long size;
	private String md5hex;
	
	@Field(type = FieldType.Keyword,analyzer = "ik_max_word")
	private String title;
	@Field(type = FieldType.Keyword,analyzer = "ik_max_word")
	private String content;
	private String dbankId;
	private String dbankBelongId ;
	private String dbankBelongType ;
	private long downloadCount;
	private long downloadPeopleCount;
	private String isPublish ;
	private String remarks;
	private String createdBy;
	private Date createdAt;
	private String updatedBy;
	private Date updatedAt;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getMd5hex() {
		return md5hex;
	}

	public void setMd5hex(String md5hex) {
		this.md5hex = md5hex;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDbankId() {
		return dbankId;
	}

	public void setDbankId(String dbankId) {
		this.dbankId = dbankId;
	}

	public String getDbankBelongId() {
		return dbankBelongId;
	}

	public void setDbankBelongId(String dbankBelongId) {
		this.dbankBelongId = dbankBelongId;
	}

	public String getDbankBelongType() {
		return dbankBelongType;
	}

	public void setDbankBelongType(String dbankBelongType) {
		this.dbankBelongType = dbankBelongType;
	}

	public long getDownloadCount() {
		return downloadCount;
	}

	public void setDownloadCount(long downloadCount) {
		this.downloadCount = downloadCount;
	}

	public long getDownloadPeopleCount() {
		return downloadPeopleCount;
	}

	public void setDownloadPeopleCount(long downloadPeopleCount) {
		this.downloadPeopleCount = downloadPeopleCount;
	}

	public String getIsPublish() {
		return isPublish;
	}

	public void setIsPublish(String isPublish) {
		this.isPublish = isPublish;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

}
